package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String realName;

    private Integer gender;    // 0未知 1男 2女

    private Integer userType;  // 1管理员 2医生 3患者

    private Integer status;    // 0禁用 1启用

    private LocalDateTime createdAt;
}
